<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <link rel="icon" th:href="@{https://v3.bootcss.com/favicon.ico}">
    <title>用户分页</title>
    <link rel="stylesheet" th:href="@{/css/dashboard.css}">
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/css/dashboard.css}">

</head>

<body>

<div th:insert="~{commons/commons::topbar}"></div>
<div class="container-fluid">
    <div class="row">

        <div th:insert="~{commons/commons::sidebar(active = 'userpage.html')}"></div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h1 class="page-header">修改用户信息</h1>


            <form method="post" th:action="@{/user/edit}">
                <!-- id隐藏域标签   防止修改后出现一直增加的功能-->
                <input , name="id" th:value="${user.id}" type="hidden">
                <div class="form-group">
                    <label for="1">用户名</label> <input class="form-control"
                                                      id="1" name="lastName"
                                                      placeholder="用户名" th:value="${user.lastName}" type="text">
                </div>

                <div class="form-group">
                    <label for="b">Email address</label> <input class="form-control"
                                                                id="b" name="email"
                                                                placeholder="Email" th:value="${user.email}" type="email">
                </div>
                <button class="btn btn-default" type="submit">修改</button>
                <a class="btn btn-sm btn-primary" th:href="@{/user/findAll}">返回</a>
            </form>
        </div>
    </div>

</div>
</body>
</html>